@isTest
private class  CCIRCaseAttachmentsControllerTest {	
	   static testMethod void testRetrieveAttachments()    {    	
      	      	
		Case testCase = new Case(Description='Test Attachments Case');
		insert testCase;
		    	
		Attachment attach = new Attachment();
		attach.Name		='Unit Test Attachment';
		Blob bodyBlob	=Blob.valueOf('Unit Test Attachment Body');
    	attach.body		=bodyBlob;
     	attach.ParentId = testCase.Id;
        insert attach;
        
    	
    	CCIRCaseAttachmentsComponentController caseAttachment 	= new CCIRCaseAttachmentsComponentController();
    	caseAttachment.attachmentCase 								= testCase;
    	
    	List<CCIRCaseAttachmentsComponentController.cAttachment> messages =  caseAttachment.attachments;
    	System.assertEquals(1, messages.size());
    	
    }
	 
 }